<template>
  <n-form label-width="auto" label-placement="left" ref="formRef" :model="form" :rules="rules">
    <slot></slot>
  </n-form>
</template>
<script lang="ts" setup>
defineProps({
  form: {
    type: Object as PropType<BaseObject>
  },
  rules: {
    type: Object as PropType<FormRules>
  }
})

const formRef = ref(null)
defineExpose({ formRef })
</script>
